#include <iostream>
#include "DoubleList.h"

using namespace std;

int main() {
	DoubleList<int> test;
	test.push_back(10);
	test.push_front(11);
	// 11 head 10
	test.show();
	test.reverse_show();
	cout << test.begin()->getval() << endl;
	ListIterator<int> itr;
	for (itr = test.begin(); itr != test.end();++itr) {
		itr.showcurdata();
		cout << "->" << *itr;
	}
	cout << endl;
	system("pause");
	return 0;
}
